<h1>Didily Search</h1>

<fieldset class="search-block" id="search-source">
  <legend>Search Source Urls</legend>
  <% form_tag(:controller => 'search', :action => 'source_uri') do %>
    <%= text_field_tag(:form_terms, params[:form_terms], :size => 30, :class => 'input-box', :value => 'enter a url', :onClick => "this.value=''") %>
    <%= submit_tag(" Search! ", :class => "input-button") %>
  <% end %>
</fieldset>

<fieldset class="search-block" id="search-relation">
  <legend class="red">Search Relationships</legend>
  <% form_tag(:controller => 'search', :action => 'relations') do %>
    <%= text_field_tag(:form_terms, params[:form_terms], :size => 30, :class => 'input-box', :value => 'enter a relationship', :onClick => "this.value=''") %>
    <%= submit_tag(" Search! ", :class => "input-button") %>
  <% end %>
</fieldset>

<fieldset class="search-block" id="search-destination">
  <legend class="green">Search Destination Urls</legend>
  <% form_tag(:controller => 'search', :action => 'destination_uri') do %>
    <%= text_field_tag(:form_terms, params[:form_terms], :size => 30, :class => 'input-box', :value => 'enter a url', :onClick => "this.value=''") %>
    <%= submit_tag(" Search! ", :class => "input-button") %>
  <% end %>
</fieldset>

<fieldset class="search-block">
  <legend>Search Everything</legend>
  <% form_tag(:controller => 'search', :action => 'search_results') do %>
    <%= text_field_tag(:form_terms, params[:form_terms], :size => 30, :class => 'input-box', :value => 'enter a url or text', :onClick => "this.value=''") %>
    <%= submit_tag(" Search! ", :class => "input-button") %>
  <% end %>
</fieldset>

<fieldset class="search-block">
  <legend>Search All Urls</legend>
  <% form_tag(:controller => 'search', :action => 'uris') do %>
    <%= text_field_tag(:form_terms, params[:form_terms], :size => 30, :class => 'input-box', :value => 'enter a url', :onClick => "this.value=''") %>
    <%= submit_tag(" Search! ", :class => "input-button") %>
  <% end %>
</fieldset>